package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.CustomerInfoMapper;
import com.shunbo.convenient.service.CustomerInfoService;
import com.shunbo.convenient.vo.CustomerInfo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class CustomerInfoServiceImpl implements CustomerInfoService {

    @Resource
    private CustomerInfoMapper customerInfoMapper;

    @Override
    public Integer save(CustomerInfo obj) {
        return customerInfoMapper.save(obj);
    }

    @Override
    public Integer update(CustomerInfo obj) {
        return customerInfoMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return customerInfoMapper.delete(obj);
    }

    @Override
    public CustomerInfo findById(String obj) {
        return customerInfoMapper.findById(obj);
    }

    @Override
    public List<CustomerInfo> findAll(CustomerInfo obj) {
        return customerInfoMapper.findAll(obj);
    }
}
